{include file="public/layout" /}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 
<span class="c-gray en">&gt;</span> 短信管理
<span class="c-gray en">&gt;</span> 短信配置
<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i>
</a>
</nav>
<article class="page-container" style="margin-top: 50px;">
    <form class="form form-horizontal" id="self_buy_rate" action="{:url('Admin/sms/config')}" method="post">
    <input type="hidden" name="id" value="{$info.id ? $info.id : ''}">
     <div class="row cl">
        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>选择短信平台：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <select class="input-text" style="width: 30%;" name="sms_platform">
                <option value="1" {if isset($sms_platform) && $sms_platform == 1} selected="selected" {/if}>创蓝</option>
                <option value="2" {if isset($sms_platform) && $sms_platform == 2} selected="selected" {/if}>阿里云</option>
            </select>
            <span style="color: #AAA;">短信平台选择</span>
        </div>
    </div>
    <div class="row cl">
        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>短信平台[appkey]：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" name="sms_appkey" value="{$info.sms_appkey ? $info.sms_appkey : ''}" id="sms_appkey" style="width: 30%;">
            <span style="color:#AAA;">短信平台配置appkey/keyid</span>
        </div>
    </div>
    <div class="row cl">
        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>短信平台[secretKey]：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" name="sms_secretKey" value="{$info.sms_secretKey ? $info.sms_secretKey : ''}" id="sms_secretKey" style="width: 30%;">
            <span style="color: #AAA;">短信平台配置secretKey</span>
        </div>
    </div>
    <div class="row cl">
        <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
            <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
        </div>
    </div>
    </form>
</article>
{include file="public/footer" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/public/h-ui.admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/public/h-ui.admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/public/h-ui.admin/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript">
$(function(){
    
    $("#form-submit").validate({
        rules:{
            self_buy_rate:{
                required:true,
            },
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
    });
});

function img_call_back(fileurl_tmp)
{
      $("#qrcode").val(fileurl_tmp);
}
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>